package com.example.rabbitmq.tomcat;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServlet;

@RestController
@RequestMapping("/test")
// @RestController
public class MyTest extends HttpServlet {
    @RequestMapping("/hello")
    public String hello() {
        return "hello";
    }
}
